package BookSystem.operation;

import BookSystem.book.BookList;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 */
public class ShowOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("书籍信息如下");
        int currentSize = bookList.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}
